package com.zh.cn.en;

import org.junit.Test;

import javax.xml.rpc.ServiceException;
import java.rmi.RemoteException;

public class testTransla {

    @Test
    public void transla() {
        TranslatorWebServiceLocator serviceLocator = new TranslatorWebServiceLocator();
        try {
            TranslatorWebServiceSoap_PortType portType = serviceLocator.getTranslatorWebServiceSoap();
            String[] strings = portType.getEnCnTwoWayTranslator("service");
            for (int i = 0; i < strings.length; i++) {
                System.out.println(strings[i]);
            }
        } catch (ServiceException e) {
            e.printStackTrace();
        } catch (RemoteException e) {
            e.printStackTrace();
        }
    }
}
